package gg;

public class kaosi {
    public static void main(String[] args) {
        System.out.println(getSum(10,30));
        System.out.println(getSum(10,20,40));
        System.out.println(getSum(10.0,5.0));
        System.out.println(getSum(10.5,3.0,4.0));
    }

    public static int getSum(int a, int b) {
        return a + b;
    }

    public static int getSum(int a, int b, int c) {
        return a + b + c;
    }

    public static double getSum(double a, double b) {
        return a + b;
    }

    public static double getSum(double a, double b, double c) {
        return a + b + c;
    }
}




